<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="strutsTags"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
	<head>
		<base href="<%=basePath%>">
		<script type="text/javascript"
			src="resource/js/compensation/salaryrating_config.js"></script>
	</head>
	<body>
		<table id="table_jobgrade" cellspacing="1" cellspacing="0"
			width="100%" border="0" class="tablesorter">
			<thead>
				<tr align="center">
					<th width="5%" nowrap="nowrap">
						薪资级别编号
					</th>
					<th nowrap="nowrap">
						薪资级别等级
					</th>
					<th nowrap="nowrap">
						参考薪资
					</th>
					<th nowrap="nowrap">
						薪资系数1
					</th>
					<th nowrap="nowrap">
						薪资系数2
					</th>
					<th nowrap="nowrap">
						薪资系数3
					</th>
					<th nowrap="nowrap">
						薪资系数4
					</th>
					<th nowrap="nowrap">
						薪资系数5
					</th>
					<th nowrap="nowrap">
						薪资系数6
					</th>
					<th nowrap="nowrap">
						薪资系数7
					</th>
					<th nowrap="nowrap">
						薪资系数8
					</th>
					<th nowrap="nowrap">
						薪资级别描述
					</th>
				</tr>
			</thead>
			<tbody id="tbody_jobgrade">
				<s:iterator value="alljobgrade">
					<tr id='<s:property value="id"/>' align="center">
						<td align="center">
							<s:property value="jobGradeNo" />
						</td>
						<td align="center">
							<s:property value="jobGradeLevel" />
						</td>
						<td align="right">
							<s:property
								value="getDecry('jobGradeMrp',id,(@com.hr.util.MyTools@BIGDECIMAL))" />
						</td>
						<td align="right">
							<s:property
								value="getDecry('jobGradeRef1',id,(@com.hr.util.MyTools@BIGDECIMAL))" />
						</td>
						<td align="right">
							<s:property
								value="getDecry('jobGradeRef2',id,(@com.hr.util.MyTools@BIGDECIMAL))" />
						</td>
						<td align="right">
							<s:property
								value="getDecry('jobGradeRef3',id,(@com.hr.util.MyTools@BIGDECIMAL))" />
						</td>
						<td align="right">
							<s:property
								value="getDecry('jobGradeRef4',id,(@com.hr.util.MyTools@BIGDECIMAL))" />
						</td>
						<td align="right">
							<s:property
								value="getDecry('jobGradeRef5',id,(@com.hr.util.MyTools@BIGDECIMAL))" />
						</td>
						<td align="right">
							<s:property
								value="getDecry('jobGradeRef6',id,(@com.hr.util.MyTools@BIGDECIMAL))" />
						</td>
						<td align="right">
							<s:property
								value="getDecry('jobGradeRef7',id,(@com.hr.util.MyTools@BIGDECIMAL))" />
						</td>
						<td align="right">
							<s:property
								value="getDecry('jobGradeRef8',id,(@com.hr.util.MyTools@BIGDECIMAL))" />
						</td>
						<td align="center">
							<s:property value="jobGradeName" />
						</td>
					</tr>
				</s:iterator>
			</tbody>
		</table>
		<div class="btnlink">
			<a id="link_add_jobgrade">新增</a>
			<a id="link_delete_jobgrade">删除</a>
			<a id="link_update_jobgrade">修改</a>
			<a id="link_sort_jobgrade">保存排序</a>
		</div>
		<br>
		<div id="dialog_jobgrade" title="薪资级别设置" class="prompt_div_inline">
			<table class="prompt_div_body" width="100%">
				<tr>
					<td>
						薪资级别编号
						<font color="red">*</font>:
					</td>
					<td class="errorMessage">
						<input id="jobGradeNo" size="16" maxlength="16">
						<label id="label_jobGradeNo">
							&nbsp;
						</label>
					</td>
				</tr>
				<tr>
					<td>
						薪资级别等级
						<font color="red">(D1)*</font>:
					</td>
					<td class="errorMessage">
						<input id="jobGradeLevel" type="text" size="3" maxlength="10">
						<label id="label_jobGradeLevel">
							&nbsp;
						</label>
					</td>
				</tr>
				<tr>
					<td>
						参考薪资
						<font color="red">(D10)</font>:
					</td>
					<td class="errorMessage">
						<input id="jobGradeMrp" size="16" maxlength="11"
							onkeypress="hrm.common.checkOnKeyDownFloat(event,this);"
							onblur="hrm.common.checkFormat(this,2,true);">
						<label id="label_jobGradeMrp">
							&nbsp;
						</label>
					</td>
				</tr>
				<tr>
					<td>
						薪资系数1
						<font color="red">(D11)</font>:
					</td>
					<td class="errorMessage">
						<input id="jobGradeRef1" size="16" maxlength="11"
							onkeypress="hrm.common.checkOnKeyDownFloat(event,this);"
							onblur="hrm.common.checkFormat(this,2,true);">
						<label id="label_jobGradeRef1">
							&nbsp;
						</label>
					</td>
				</tr>
				<tr>
					<td>
						薪资系数2
						<font color="red">(D12)</font>:
					</td>
					<td class="errorMessage">
						<input id="jobGradeRef2" size="16" maxlength="11"
							onkeypress="hrm.common.checkOnKeyDownFloat(event,this);"
							onblur="hrm.common.checkFormat(this,2,true);">
						<label id="label_jobGradeRef2">
							&nbsp;
						</label>
					</td>
				</tr>
				<tr>
					<td>
						薪资系数3
						<font color="red">(D13)</font>:
					</td>
					<td class="errorMessage">
						<input id="jobGradeRef3" size="16" maxlength="11"
							onkeypress="hrm.common.checkOnKeyDownFloat(event,this);"
							onblur="hrm.common.checkFormat(this,2,true);">
						<label id="label_jobGradeRef3">
							&nbsp;
						</label>
					</td>
				</tr>
				<tr>
					<td>
						薪资系数4
						<font color="red">(D14)</font>:
					</td>
					<td class="errorMessage">
						<input id="jobGradeRef4" size="16" maxlength="11"
							onkeypress="hrm.common.checkOnKeyDownFloat(event,this);"
							onblur="hrm.common.checkFormat(this,2,true);">
						<label id="label_jobGradeRef4">
							&nbsp;
						</label>
					</td>
				</tr>
				<tr>
					<td>
						薪资系数5
						<font color="red">(D15)</font>:
					</td>
					<td class="errorMessage">
						<input id="jobGradeRef5" size="16" maxlength="11"
							onkeypress="hrm.common.checkOnKeyDownFloat(event,this);"
							onblur="hrm.common.checkFormat(this,2,true);">
						<label id="label_jobGradeRef5">
							&nbsp;
						</label>
					</td>
				</tr>
				<tr>
					<td>
						薪资系数6
						<font color="red">(D16)</font>:
					</td>
					<td class="errorMessage">
						<input id="jobGradeRef6" size="16" maxlength="11"
							onkeypress="hrm.common.checkOnKeyDownFloat(event,this);"
							onblur="hrm.common.checkFormat(this,2,true);">
						<label id="label_jobGradeRef6">
							&nbsp;
						</label>
					</td>
				</tr>
				<tr>
					<td>
						薪资系数7
						<font color="red">(D17)</font>:
					</td>
					<td class="errorMessage">
						<input id="jobGradeRef7" size="16" maxlength="11"
							onkeypress="hrm.common.checkOnKeyDownFloat(event,this);"
							onblur="hrm.common.checkFormat(this,2,true);">
						<label id="label_jobGradeRef7">
							&nbsp;
						</label>
					</td>
				</tr>
				<tr>
					<td>
						薪资系数8
						<font color="red">(D18)</font>:
					</td>
					<td class="errorMessage">
						<input id="jobGradeRef8" size="16" maxlength="11"
							onkeypress="hrm.common.checkOnKeyDownFloat(event,this);"
							onblur="hrm.common.checkFormat(this,2,true);">
						<label id="label_jobGradeRef8">
							&nbsp;
						</label>
					</td>
				</tr>
				<tr>
					<td>
						薪资级别描述
						<font color="red">*</font>:
					</td>
					<td class="errorMessage">
						<s:textarea id="jobGradeName" cols="24" rows="6"
							onkeyup="if(this.value.length>64){this.value=this.value.substring(0, 64)}" />
						<label id="label_jobGradeName">
							&nbsp;
						</label>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<font color="red">备注：D1、D10~D18表示薪资帐套中对应的变量引用名称。</font>
					</td>
				</tr>
				<tr>
					<td colspan="2" class="prompt_div_bottom">
						<input id="btn_jobgrade_create" class="button" type="button"
							value="新增">
						<input id="btn_jobgrade_update" class="button" type="button"
							value="修改">
						<input id="btn_jobgrade_close" class="button" type="button"
							value="取消">
						<input id="jobgradeId" type="hidden" />
					</td>
				</tr>
			</table>
		</div>

		<script type="text/javascript">
	var config = {
		tableId :"table_jobgrade",
		tbodyId :"tbody_jobgrade",
		dialogId :"dialog_jobgrade",
		updateButton :"btn_jobgrade_update",
		addButton :"btn_jobgrade_create",
		addLink :"link_add_jobgrade",
		deleteLink :"link_delete_jobgrade",
		updateLink :"link_update_jobgrade",
		sortLink :"link_sort_jobgrade",
		closeButton :"btn_jobgrade_close",
		modal :true
	};
	jobgradeManager = new JobgradeManager(config);
</script>
	</body>
</html>